{% extends 'oratk_app/master.html' %}
{% block tag_left %}
    {% include 'oratk_app/tag_left_user.html' %}
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">监控项管理</h2>
            <form class="navbar-form navbar-left" role="search">
            {#                <button type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"  aria-hidden="true" ></span><a href="/basic_app/user_add"> 添加用户</a></button>#}
            <div class="form-group">
                <input type="text" name="user_search" class="form-control aa_search" placeholder="Search">
            </div>
            <button type="submit" class="btn btn-default"  id="aa_search" aa_search="{{ search }}">
                <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 搜索
            </button>
            <button type="button" class="btn btn-default"
                    onclick="javascrtpt:window.location.href='/oratk_app/cron_point_mgr_add'"><span
                    class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加监控项
            </button>
        </form>
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th>名称</th>
                <th>描述</th>
                <th>类别</th>
                <th>sql信息/主机命令</th>
                <th>是否含有阈值参数</th>
                <th>状态</th>
                <th>备注</th>
                <th>操作</th>
            </thead>
            <tbody>
            {% for i in current_page %}
                <tr>
                    {#                        <td><input type="checkbox"/></td>#}
                    <td style="display:none">{{ i.id }}</td>
                    <td>{{ i.name }}</td>
                    <td>{{ i.desc }}</td>
                    <td>{{ i.point_type }}</td>
                    <td><div style="height:36px;width:300px;overflow:hidden;display:block;">{{ i.sqltext }}</div></td>
                    <td>{{ i.limit }}</td>
                    <td>{{ i.status }}</td>
                    <td>{{ i.remake }}</td>
                    <td ><a href="/oratk_app/cron_point_mgr_edit?nid={{ i.id }}">编辑</a> | <a
                            href="/oratk_app/cron_point_mgr_delete?nid={{ i.id }}">删除</a> | <a
                            href="/oratk_app/cron_point_mgr_lock?nid={{ i.id }}">锁定</a> | <a
                            href="/oratk_app/cron_point_mgr_more?nid={{ i.id }}">查看详情</a></td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        {#        以上是分页#}
        {% include 'basic_app/paginator.html' %}
    </div>
{% endblock  %}


